<?php 
/**
 * File Defination 
 * - An element to render general message
 * -----------------------------------------------------------------
 * Apprain : Content Management Framework <http://www.apprain.com/>
 * Download link: http://www.apprain.com/download
 * Docs link: http://www.apprain.com/docs
 * ------------------------------------------------------------------
 * License text http://www.opensource.org/licenses/mit-license.php 
 * About MIT license <http://en.wikipedia.org/wiki/MIT_License/>
 */

$type = isset($type) ? $type : "message";
?>
<?php $rows = is_array($message) ? $message : array($message);?>
<?php if(!empty($message)):?>
<?php $type = ($type == 'message') ? 'success' : $type; ?>
	<div class="message-pan <?php echo $type; ?>-pan">
        <ol>
            <?php foreach($rows as $row):?>
                <?php echo  $this->get_tag("li",$row);?>
            <?php endforeach;?>
        </ol>
    </div>
<?php endif;?>